<?php

/**
 * VehicleFeature form.
 *
 * @package    MVM Vehicle Showroom (r)
 * @subpackage form
 * @author     Bo Wang < beau32 [at] gmail.com >
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class VehicleFeatureForm extends BaseVehicleFeatureForm
{
  public function configure()
  {
    $choices = FeatureTable::getInstance()->findAll(Doctrine_Core::HYDRATE_RECORD);

    $this->widgetSchema['features'] = new sfWidgetFormSelectCheckbox(array('choices'=>$choices),array('multiple'=>true));
  }
}
